﻿using System.Device.Location;
using Microsoft.WindowsAzure.MobileServices;
using System.Windows.Media;
using SkiTracker.Converter;

namespace SkiTracker.Model
{
    [DataTable(Name="Devices")]
    public class Device
    {
        public int Id { get; set; }

        public string Name { get; set; }
        public string GroupName { get; set; }

        [DataMemberJsonConverter(ConverterType = typeof(ColorJsonConverter))]
        public Color Color { get; set; } 

        public string ChannelUri { get; set; }

        //public double Latitude { get; set; }
        //public double Longitude { get; set; }

        [DataMemberJsonConverter(ConverterType = typeof(GeoCoordinateJsonConverter))]
        public GeoCoordinate Coordinate { get; set; }

        [DataMemberJsonConverter(ConverterType = typeof(EnumJsonConverter<PlatformType>))]
        public PlatformType Platform { get; set; }

    }
}